package com.fpt.app.demo.view;

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.animation.AnimationUtils;
import android.widget.ViewFlipper;
import com.fpt.app.demo.R;
public class Splash extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.flashscreen);
        ViewFlipper viewFlipper =(ViewFlipper)findViewById(R.id.flipper);
        viewFlipper.startFlipping();
        MediaPlayer mediaPlayer = MediaPlayer.create(this, R.raw.nmh_scream1);
        mediaPlayer.start();
        viewFlipper.setOutAnimation(AnimationUtils.loadAnimation(this,
                R.anim.hyperspace_in));
        viewFlipper.setInAnimation(AnimationUtils.loadAnimation(this,
                R.anim.hyperspace_out));
        
    }
}